package com.labbit.platform.manager.dao;

import com.labbit.platform.manager.domain.po.AdminUser;
import com.labbit.platform.manager.domain.vo.UserListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminUserMapper {

    AdminUser selectForLogin(@Param("username") String username, @Param("password") String password);

    Integer selectCountByUsername(@Param("username") String username);

    List<UserListVO> selectUserList(@Param("accountName")String accountName);

    Integer selectCurrentAccountId();

    int deleteByPrimaryKey(String id);

    int insert(AdminUser record);

    int insertSelective(AdminUser record);

    AdminUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(AdminUser record);

    int updateByPrimaryKey(AdminUser record);
}